import { createSSRApp } from "vue";
import uView from '@/uni_modules/vk-uview-ui'

import App from "./App.vue";
import api from '@/api'
import request from '@/api/request'
import router from '@/router'
import plugins from '@/plugin'
import im from '@/IM/index'
import store from './store'

export function createApp() {
	const app = createSSRApp(App);
	app.use(uView)
    app.use(api)
    app.use(store)
    app.use(request)
    app.use(router)
    app.use(plugins)
    // #ifdef APP-PLUS
    app.use(im)
    // #endif
	return {
		app
	};
}
